fix: hermes publish pipy version check#32
Merged
Conversation
PyPI rejected re-uploading `hermes-ryzome-plugin 1.0.0` since it already exists. Bumping via changeset so the next "Version Packages" PR moves pyproject.toml to 1.0.1 (via sync-hermes-plugin-version.mjs), after which the manual dispatch of publish-hermes-python.yml can upload cleanly. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Before building anything, read the version from pyproject.toml and query PyPI's JSON API. If the version already exists, fail immediately with a clear message pointing at the fix (bump via changeset, merge, re-dispatch) instead of surfacing a 400 buried at the tail of a long publish log. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request improves the publishing workflow and documentation for the Hermes Python package. The most significant changes are a new preflight check in the publish workflow to prevent PyPI version conflicts, and the addition of a proper
README.mdfor the PyPI landing page. These updates help ensure smoother publishing and better user guidance.Publishing workflow improvements:
.github/workflows/publish-hermes-python.ymlthat checks if the current version ofhermes-ryzome-pluginalready exists on PyPI, providing a clear error and instructions if it does. This prevents confusing failures later in the workflow and helps maintainers resolve version conflicts quickly.@ryzome-ai/ryzome-coreis built before Hermes.Documentation improvements:
README.mdfor the PyPI landing page, including installation, configuration, tool table, environment variables, and troubleshooting information. Updatedpyproject.tomlto point to this README so it is embedded in the sdist/wheel.